package com.zzyl.nursing.controller.member;
/*
 *TODO
 *@Autor Adam
 *@Date  2025/8/2  17:59
 *
 */

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zzyl.common.core.controller.BaseController;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.service.ReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;



@RestController
@RequestMapping("/nursing/reservation")
public class NursingReservationController extends BaseController {
    @Autowired
    private ReservationService reservationService;
    @GetMapping("/list")
    public TableDataInfo<List<Reservation>> page(){
        startPage();
        List<Reservation> reservationList = reservationService.list();
        return getDataTable(reservationList);
    }
}
